/**
 * Created by Administrator on 2017/6/9.
 */
import {fetch} from 'api/fetch';

// 获取健康详情
export const callGetEhrDetail = (ehrId) => {
  return fetch({
    url: '/api/user/patient/ehr/detail',
    method: 'post',
    params: {
      ehrId
    }
  })
}
// 新增信息
export const callAddEhr = (client = {}) => {
  return fetch({
    url: '/api/user/patient/ehr/add',
    method: 'post',
    params: {
      ...client
    }
  })
}

// 修改信息
export const callSaveEhr = (client = {}) => {
  return fetch({
    url: '/api/user/patient/ehr/update',
    method: 'post',
    data: {
      ...client
    }
  })
}

// 删除病例信息
export const callDelEhr = (ehrId) => {
  return fetch({
    url: '/api/user/patient/ehr/del',
    method: 'post',
    data: {
      ehrId
    }
  })
}

// 上传附图
export const callUploadBase64 = (file) => {
  return fetch({
    url: '/api/user/patient/base64/upload',
    method: 'post',
    data: {
      file
    }
  })
}


